/* @(#)Test.java v${project.version} 2011-7-8 下午05:45:54 
 * 
 * ${project.copyright.info}
 * ${project.copyright}
 * ==============================================================================================================*/
package net.lysa.ooo.cui;

import java.io.IOException;
import java.util.List;

import net.lysa.ooo.business.UserBusiness;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import domain.User;

/**
 * <p>Class description goes here.</p>
 * 
 * @see    java.lang.Object
 * @author caochuan@guahaoe.com
 */
public class OOOCui {
	private static Logger logger = LoggerFactory.getLogger(OOOCui.class);
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		ApplicationContext context = new ClassPathXmlApplicationContext("application-context.xml");
		UserBusiness userBusiness = context.getBean(UserBusiness.class);
		List<User> list = userBusiness.showUsers();
		logger.info(":"+list.toString());
		try {
			System.in.read();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
